const HtmlWebpackPlugin = require('html-webpack-plugin')

let page = [
    {
        path: ['index','./src/js/index.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/index.html',
            filename: './page/index.html',
            chunks: ['index'],
        })
    },
    {
        path: ['information', './src/js/information.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/information.html',
            filename: './page/information.html',
            chunks: ['information'],
        })
    },
    {
        path: ['infoDetail', './src/js/infoDetail.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/infoDetail.html',
            filename: './page/infoDetail.html',
            chunks: ['infoDetail'],
        })
    },
    {
        path: ['miniGame', './src/js/miniGame.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/miniGame.html',
            filename: './page/miniGame',
            chunks: ['miniGame'],
        })
    },
    {
        path: ['microOnlineGame', './src/js/microOnlineGame.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/microOnlineGame.html',
            filename: './page/microOnlineGame',
            chunks: ['microOnlineGame'],
        })
    },
    {
        path: ['topicTotal', './src/js/topicTotal.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/topicTotal.html',
            filename: './page/topicTotal',
            chunks: ['topicTotal'],
        })
    },
    {
        path: ['specialTopic', './src/js/specialTopic.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/specialTopic.html',
            filename: './page/specialTopic',
            chunks: ['specialTopic'],
        })
    },
    {
        path: ['activity', './src/js/activity.js'],
        html: new HtmlWebpackPlugin({
            template: './src/page/activity.html',
            filename: './page/activity',
            chunks: ['activity'],
        })
    },
]

module.exports = page
